<div class="prolist">
  <div class="left">
    <%=render :partial=>"products/one_item",:object=>@product %>
    <%= render :partial=>"products/hot_click_pros" %>
  </div>
  <div class="right">
    <div class="pro_reviews">
      <div class="box box-h14"> <span class="top_bg"><span></span></span>
        <div class="head"><h3>所有咨询信息</h3></div>
        <div class="con clearfix">
          <% for item in @pro_reviews %>
            <div class="item">
              <div class="time_info">网友：<%=item.login%> &nbsp;<%=item.created_at.strftime("%Y-%m-%d %H:%M:%S")%></div>
              <dl class="ask clearfix">
                <dt>咨询：</dt>
                <dd><%=h item.question %></dd>
              </dl>
              <dl class="answer clearfix">
                <dt>回复：</dt>
                <dd><%=h item.answer %> </dd>
              </dl>
            </div>
           
          <% end %>
        </div>
        <div class="rc">
          <ul class="rl">
            <li>总共有<%=@pro_reviews.total_entries %>条留言</li>
                      </ul>
        </div>
        <span class="bot_bg">
          <span></span>
        </span>
      </div>
<%=will_paginate @pro_reviews,:previous_label=>"上一页",:next_label=>"下一页"%>
      <div class="post_review">
        <h3>发表咨询:</h3>
        <% form_for(ProReview.new,:url=>product_pro_reviews_path(params[:product_id])) do |f| %>
          <%= f.error_messages %>
          <p>
            内容:(<font style="font-weight:normal">如果还没有登录，请先<a href="/login" class="redcolor">登录</a>或<a href="/signup" class="redcolor">注册</a></font>)<br/>

            <%= f.text_area :question %>

          </p>
          <p>
            <%= f.submit "提交", :class=>"long-btn" %>
          </p>
        <% end %>
      </div>
    </div>
  </div>
</div>


<%=render :partial=>"products/sub_menu",:object=>2 %>
